Skip to content

Store path attribute on Diff object #266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 2, 2015

Conversation

jeblair
Copy link
Contributor

@jeblair jeblair commented Mar 2, 2015

If a file in a commit contains no changes (for example, if only the
file mode is changed) there will be no blob attached. This is
usually where the filename is stored, so without it, the calling
context can not tell what file was changed. Instead, always
store a_path and b_path on the Diff object so that information
is available.

If a file in a commit contains no changes (for example, if only the
file mode is changed) there will be no blob attached.  This is
usually where the filename is stored, so without it, the calling
context can not tell what file was changed.  Instead, always
store a_path and b_path on the Diff object so that information
is available.
@Byron Byron added this to the v0.3.7 - Fixes milestone Mar 2, 2015
Byron added a commit that referenced this pull request Mar 2, 2015
Store path attribute on Diff object
@Byron Byron merged commit 88f3dc2 into gitpython-developers:master Mar 2, 2015
@Byron
Copy link
Member

Byron commented Mar 2, 2015

Thank you :) ! If travis is green, I am green too !

jeblair added a commit to openstack-archive/gertty that referenced this pull request Mar 5, 2015
If a file only has mode differences, but no content difference,
we do not have access through GitPython to find out the filenames.

gitpython-developers/GitPython#266 has
been submitted to correct that, but in the mean time, display
"Unknown File" to avoid crashing.

Change-Id: Ic935f9737ae3978a7a639408c24f166c76a2c999
Story: 2000027
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants